package org.thread.test00.demo06;

import java.util.concurrent.TimeUnit;

/**
 * @author ZQX
 * @date 2025-03-12
 */
public class MainTest {
    public static void main(String[] args) throws Exception {
        MyThread mt = new MyThread();
        mt.start();

        TimeUnit.SECONDS.sleep(10);

        // 终止线程
        mt.interrupt();
    }
}
